using System;
using HBCode.BusinessLogic.Base;

namespace HBCode.BusinessLogic.Entities
{
	public class Product : EntityBase
	{
		private long _productID;
		public long ProductID
		{
			get
			{
				return _productID;
			}
			set
			{
				if (_productID == value)
					return;
				OnPropertyChanging("ProductID");
				_productID = value;
				OnPropertyChanged("ProductID");
			}
		}

		private string _ProductName;
		public string ProductName
		{
			get
			{
				return _ProductName;
			}
			set
			{
				if (_ProductName == value)
					return;
				OnPropertyChanging("ProductName");
				_ProductName = value;
				OnPropertyChanged("ProductName");
			}
		}

		private Nullable<decimal> _Price;
		public Nullable<decimal> Price
		{
			get
			{
				return _Price;
			}
			set
			{
				if (_Price == value)
					return;
				OnPropertyChanging("Price");
				_Price = value;
				OnPropertyChanged("Price");
			}
		}

		private Nullable<long> _CategoryID;
		public Nullable<long> CategoryID
		{
			get
			{
				return _CategoryID;
			}
			set
			{
				if (_CategoryID == value)
					return;
				OnPropertyChanging("CategoryID");
				_CategoryID = value;
				OnPropertyChanged("CategoryID");
			}
		}

		private Category _Category;
		public virtual Category Category
		{
			get
			{
				return _Category;
			}
			set
			{
				if (_Category == value)
					return;
				OnPropertyChanging("Category");
				_Category = value;
				OnPropertyChanged("Category");
			}
		}
	}
}

